﻿using System;
/*
    Write a program that reads a number n and prints on the console the first n members of the Fibonacci sequence 
    (at a single line, separated by comma and space - ,) : 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, ….
 */
class FibonacciNumbers
{
    static void Main()
    {
        Console.WriteLine("Enter amount of Fibonacci numbers.");
        int n = int.Parse(Console.ReadLine());
        Console.WriteLine(new string('-', 10));
        int a = 0;
        int b = 1; 
        int c = 0;
        Console.Write("{0}, {1}", a, b);

        for (int i = 2; i < n; i++)
        {
            c = a + b;
            Console.Write(", {0}", c);
            a = b;
            b = c;
        }
        Console.WriteLine();
    }
}
